#pragma once

#include "CControl.h"
#include "CScrollBase.h"

class UI_API CScroll : public CControl, public CScrollBase
{
public:
	CScroll();
	CScroll(int_32 iX, int_32 iY, int_32 iWidth, int_32 iHeight);
	~CScroll();
public:
	const COID & GetOID() const;
	void OnPaint(IPaint * pPaint, const CRectInt32 & rectClip) const;
	void MouseDown(CMouseArgument & args);
	void MouseUp(CMouseArgument & args);
	void MouseMove(CMouseArgument & args);
	void MouseOut(CMouseArgument & args);

	void SizeChanged(CResizeArgument & args);
public:
	void MinValueChanged();
	void MaxValueChanged();
	void ValueChanged();
	void ScrollSizeChanged();
	void LineValueChanged();
	void PageValueChanged();
	void ScrollPointChanged();
};